package com.vue.vuedemo.dao;

import com.vue.vuedemo.pojo.Persons;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PersonMapper {
    List<Persons> findAll();

    Persons login(@Param("username") String username,@Param("password") String password);

    Persons idFindAll(Integer id);

    Integer add(Persons persons);

    Integer del(Integer id);

    Persons usernameFindAll(String username);

    Integer updatePassword(@Param("password") String password,@Param("id") Integer id);

    Integer tuanDuiAdd(Persons persons);

    Persons ManagerLogin(@Param("username") String username,@Param("password") String password);

    List<Persons> FirendPersonsFindAll(Integer fUserId);
}
